<%@page import="Model.Product.ProductList"%>
<%@page import="RssEasy.Core.HttpRequestHelper"%>
<%@page import="RssEasy.Core.CookieHelper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
CookieHelper cookie=new CookieHelper(request, response);
ProductList plt = new ProductList(pageContext);
plt.request();
int pag = Integer.parseInt(plt.get("page"));
pag = (pag-1)*10;
plt.query("select id,name,pt,ptstate,ptupdate from product_list where ptstate like '%"+plt.get("ptstate")+"%' and name like '%"+plt.get("name")+"%' and myid="+cookie.Get("myid")+" order by id desc LIMIT "+pag+",10");
out.print(plt.toKeyValue());
%>

